# -*- coding:utf-8 -*-

class Element(object):
    """
    selenium关键字
    """
    # Returns the title of the current page.
    title = "title"
    # Finds an element by id.
    find_element_by_id = "id"
    # Finds multiple elements by id.
    find_elements_by_id = "ids"
    # Finds an element by xpath.
    find_element_by_xpath = "xpath"
    # Finds multiple elements by xpath.
    find_elements_by_xpath = "xpaths"
    # Finds an element by link text.
    find_element_by_link_text = "link_text"
    # Finds elements by link text.
    find_elements_by_link_text = "link_texts"
    # Finds an element by a partial match of its link text.
    find_element_by_partial_link_text = "partial_link_text"
    # Finds elements by a partial match of their link text.
    find_elements_by_partial_link_text = "partial_link_texts"
    # Finds an element by name.
    find_element_by_name = "name"
    # Finds elements by name.
    find_elements_by_name = "names"
    # Finds an element by tag name.
    find_element_by_tag_name = "tag_name"
    # Finds elements by tag name.
    find_elements_by_tag_name = "tag_names"
    # Finds an element by class name.
    find_element_by_class_name = "class_name"
    # Finds elements by class name.
    find_elements_by_class_name = "class_names"
    # Finds an element by css selector.
    find_element_by_css_selector = "css"
    # Finds elements by css selector.
    find_elements_by_css_selector = "csss"
    # Synchronously Executes JavaScript in the current window/frame.
    execute_script = "js"
    # Asynchronously Executes JavaScript in the current window/frame.
    execute_async_script = "async_js"

    switch_to_frame = "iframe"
    click = "click"
    find_element = "find"
    send_keys = "send"

    # 检查点
    CONTRARY = "contrary"
    DEFAULT_CHECK = "default_check"
